<template>
	<view class="template">
		<view class="content" v-for="(item, index) in goodsList" :key="index" style="margin-bottom:20rpx">		
			<goods-card :goodsInfo="item" :value="newData" v-if="item&&item.skus" :gType="gType" :activityId="activityId"></goods-card>			
		</view>
	</view>
</template>

<script>
	import goodsCard from "@/components/goods-card/index";
	
	export default {
		name: 'goods-card1',
		data() {
			return {
				newData: {
					background: '#ffffff',
					pageLRSpacing: "20",
					pageUDSpacing: "30"
				}
			}
		},
		props: {
			goodsList: {
				type: Array,
				default: () => []
			},
			gType: {
				type: [String || null],
				default: ''
			},
			activityId: {
				type: [String || null],
				default: ''
			}
		},
		components: {
			goodsCard
		},		
		mounted() {
			
		},
		methods: {

		}
	}
</script>

<style>
</style>